/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package by.vdl.websort.server.dao;

import by.vdl.websort.server.entity.UserDTO;
import by.vdl.websort.server.entity.UserPassedStudyDTO;

import java.util.List;

/**
 *
 * @author zeor
 */
public interface UserDao {
    
    public List<UserDTO> getUsersList();
    
    public void create(UserDTO userDTO);
    
    public boolean check(String login, String password);
    
    public UserDTO checkUser(String login, String password);
    
    public UserPassedStudyDTO addUserPassedStudy(String userIdentify, long studyId);
    
    public UserDTO getUserById(long userId) throws Exception;
}
